package com.gasstion.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class OilCard {

  private int id;
  private String cardId;
  private int operator;
  @JsonFormat(pattern = "yyyy-MM-hh")
  @DateTimeFormat(pattern = "yyyy-MM-hh")
  private Date handleDate;
  private double balance;
  private double amount;

  private Userinfo userinfo;

  public Userinfo getUserinfo() {
    return userinfo;
  }

  public void setUserinfo(Userinfo userinfo) {
    this.userinfo = userinfo;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }


  public String getCardId() {
    return cardId;
  }

  public void setCardId(String cardId) {
    this.cardId = cardId;
  }


  public int getOperator() {
    return operator;
  }

  public void setOperator(int operator) {
    this.operator = operator;
  }


  public Date getHandleDate() {
    return handleDate;
  }

  public void setHandleDate(Date handleDate) {
    this.handleDate = handleDate;
  }


  public double getBalance() {
    return balance;
  }

  public void setBalance(double balance) {
    this.balance = balance;
  }


  public double getAmount() {
    return amount;
  }

  public void setAmount(double amount) {
    this.amount = amount;
  }

}
